package com.itheima.d5_block;

import java.util.ArrayList;

public class Student {
    static String schoolName = "itcast";
    static ArrayList<String> list = new ArrayList<>();
//    static{
//        System.out.println("静态代码块执行了");
//        list.add("kk");
//        list.add("jj");
//        list.add("aa");
//    }

    {
        System.out.println("实例代码块执行了");
    }
    public Student(){
        System.out.println("无参构造器");
    }
    public Student (String name){
        System.out.println("有参构造器");
    }
}
